const state = {
  isShowNav: false,
  pageShowNav: true
}

const mutations = {
  'SHOW_NAV' (state) {
    state.isShowNav = true
  },
  'HIDE_NAV' (state) {
    state.isShowNav = false
  },
  'SET_PAGE_HAS_NAV' (state, tag) {
    state.isShowNav = tag
    state.pageShowNav = tag
  }
}

const actions = {}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
